package com.can.common.constant;

/**
 * @Desription shiro 对应的常量
 * @Author can
 * @Date 2018/8/31
 * @Version 1.0
 */
public interface ShiroConstants {
    /** 对记住我进行加密的秘钥，默认使用AES算法 **/
   public static final String REMEMBER_ME_CIPHER_KEY = "5A6VhmF8UssKT83Kprsdag==";
   /** 浏览器中cookie的标识名 **/
   public static final String REMEMBER_ME_COOKIE_NAME = "rememberMe";
    /** 浏览器中session 的标识名 **/
   public static final String REMEMBER_ME_SESSION_NAME = "sid";
    /** 记住我有效时间7天，单位秒 **/
   public static final int REMEMBER_ME_ACTIVE_TIME = 604800;
   /**  记住我失效设置 **/
   public static final int REMEMBER_ME_EXPIRY_TIME = -1;
    /** 指定加密方式为MD5 **/
   public static final String HASH_ALGORITHM_NAME = "MD5";
   /** 加密次数，如果是2代表md5(md5(密码)) **/
   public static final int HASH_ITERATIONS = 3;
   /** 随机盐的长度 **/
   public static final int random_salt_length = 8;
}
